﻿#region namespaces

using System;
using System.Collections.Generic;
using System.Xml.Linq;

#endregion

namespace ZOIL.DataBackend.BaseX
{
    public class InvalidXQueryException : InvalidOperationException
    {
        public readonly string ResultingXQuery;
        public readonly List<XElement> Results;
        public readonly string UserXQuery;

        public InvalidXQueryException(string message, string userXQuery, string resultingXQuery, List<XElement> results, Exception innerException)
            : base(message, innerException)
        {
            UserXQuery = userXQuery;
            ResultingXQuery = resultingXQuery;
            Results = results;
        }

        public InvalidXQueryException(string message, string userXQuery, string resultingXQuery, List<XElement> results) : base(message)
        {
            UserXQuery = userXQuery;
            ResultingXQuery = resultingXQuery;
            Results = results;
        }
    }
}